﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fiddler;
using System.Windows.Forms;
using Hardanger.View;
using Hardanger.ViewModel;
using System.Windows.Forms.Integration;
using Hardanger.Utils;

namespace Hardanger.Controller
{
	sealed partial class HardangerCore
	{
		void IAutoTamper3.OnPeekAtRequestHeaders(Session oSession)
		{
			
		}

		void IAutoTamper2.OnPeekAtResponseHeaders(Session oSession)
		{
			
		}

		void IAutoTamper.AutoTamperRequestAfter(Session oSession)
		{
			
		}

		void IAutoTamper.AutoTamperRequestBefore(Session oSession)
		{
			if (!oSession.isTunnel)
			{
				SessionManager.Current.AddSession(FiddlerSessionParser.ParseFiddlerSession(oSession.id, oSession.hostname, oSession.port, oSession.isHTTPS, oSession.ToString()));
			}
		}

		void IAutoTamper.AutoTamperResponseAfter(Session oSession)
		{
			
		}

		void IAutoTamper.AutoTamperResponseBefore(Session oSession)
		{
		}

		void IAutoTamper.OnBeforeReturningError(Session oSession)
		{
		}

     
	}
}
